<template>
	<div  style="background-color:white">
		<br/><br/><br/>
		<div style="text-align:center"><h4>{{messageCont.schoolAnnouncementTitle}}</h4><br>
		{{messageCont.schoolAnnouncementTypeName}}<br/>{{messageCont.schoolAnnouncementUpdateTime}}<br>
		</div>
		<div id="tzgg-tznr" v-html="messageCont.schoolAnnouncementContent"></div>
	</div>
</template>
<script>
export default {
	data(){
		return{
			tznr: {},
			messageCont:{}
		}
	},mounted () {
//		this.loadParams()
//		console.info(this.messageCont)
		this.loadDetailNews()
	},
	computed:{
		url:function(){
			return 'iyx/announce/'+this.$route.params.bh+'/SelectContent'
		}
	},
  	methods: {
//		loadParams(){
//			let that = this
//			that.axios.get('/gleenSoft-base/xxgl/tzgg/get',{params:{BH:this.$route.params.bh}}).then(function (response) {
//	        	that.tznr = response.data
//	      	}).catch(function (error) {
//	        	console.log(error);
//	      	});
//		},
		loadDetailNews(){
			let that = this
			that.axios.get(that.url).then(function (response) {
	        	that.messageCont = response.data[0]
	        	console.info(that.messageCont)
	      	}).catch(function (error) {
	        	console.log(error);
	      	});
		},
	}
}

</script>
<style>
#tzgg-tznr{
	width:96%;
	margin:2%;
}
#tzgg-tznr img{
	width:100%;
}
</style>
